#pragma once

#include <windows.h>
#include "SGD Wrappers/CSGD_TextureManager.h"

class CFont
{
private:
	int m_nImageid;
	int m_nCharW;
	int m_nCharH;
	int m_nNumcols;

	char m_cStartchar; // reps first char on sheet


	RECT CellAlgorithm(int nID);
public:	

	CFont();
	~CFont();
	void load();

	void DrawString(char* sztext, int nposx, int nposy, float fscaleX=1.0f,  float fscaleY=1.0f,
		float fRotation=0.0f, DWORD dwcolor= D3DCOLOR_XRGB(255,255,255));
};